﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDS
{
    public interface ISnapshotRepository<T> where T:Protocol.IMessage
    {
        bool SaveSnapshot(IEnumerable<T> messages);
        bool LoadSnapshot(out Dictionary<string, T> message);
        bool LoadSnapshot(out IEnumerable<T> messages);
        bool TryClearAllData();
        T GetMessageByStkId(string stkId);
    }
  
}